@extends('layouts.master3')
@section("title")
代码详情 
@endsection
@section("css")
 <link rel="stylesheet" href="/css/codemirror.css">
    <style>
        .statistics-list {
            padding: 40px;
        }   

        .statistics-list span {
            display: inline-block;
            margin-bottom: 15px;
            width: 80px;
        }   
		.CodeMirror{height:auto;}
    </style>
@endsection
@section("content")
    <!-- Bootstrap FAQ - END -->
    <div class="contain">
        <div class="statistics success">
<?php
?>
        <div class="clearfix"></div>
        <div class="statistics failed">
            <h3>Judge Info</h3>

            <div id="codeError" style="border: 1px solid rgb(170, 170, 170); padding: 10px; margin-top: 20px;">
				{{$data['info']['result']}}<br>
                <font color="red">{{$data['info']['remark']}}</font></div>
        </div>
        <div class="clearfix"></div>
        <h3>Source Code</h3>
<textarea id="editor">{{$data->code}}</textarea>
    </div>


    <div style="height:60px;"></div>
</div>
@stop
@section('js')
<script src="/js/codemirror.js"></script>
<script src="/js/mode/python/python.js"></script>
<script src="/js/mode/clike/clike.js"></script>
<script src="/js/mode/javascript/javascript.js"></script>
<script src="/js/echarts.js"></script>
<script>
var mod = "text/x-python";
	var myTextarea = document.getElementById('editor');
    var CodeMirrorEditor = CodeMirror.fromTextArea(myTextarea, {
        mode:mod,
        readOnly:"true",
        lineNumbers: true
    });
  </script>
@stop
